# 作者: 郑驭泷
# 2025年03月15日10时13分20秒
# 2395042511@qq.com
# class Animal:
#     def __init__(self, spceies, name, age):
#         self.spceies = spceies
#         self.name = name
#         self.age = age
#
#     def run(self):
#         if self.spceies == 'dog':
#             print(f"他的速度可以达到100公里每小时")
#         else:
#             print(f"他的速度可以达到69公里每小时")
#
#
# my_dog = Animal("elephent", "旺财", 12)
# my_dog.run()


class Dog:
    def __init__(self, name, color):
        self.name = name
        self.color = color

    def bark(self, person):
        if person in ('wangyuanqi', "yejunyi", 'shiminqiang', "zhengyulong"):
            print(f"{self.name}很开心，开始摇尾巴")
        else:
            print(f"{self.name}很生气，汪汪🐶叫")


my_animal = Dog("戴邵泽", "黄色")
while True:
    person_input = input("请输入戴邵泽认识的人：")
    my_animal.bark(person_input)
